//
//  KPChooseImageViewController.swift
//  KPBaseProject
//
//  Created by Kipp Dev on 2018/4/3.
//  Copyright © 2018年 Kipp. All rights reserved.
//

import UIKit

class KPChooseImageViewController: KPBaseViewController {

    fileprivate var scrollView: UIScrollView!

    override func viewDidLoad() {
        super.viewDidLoad()
        testView()
    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        scrollView.frame = CGRect.init(x: 0, y: 0, width: Screen.width, height: Screen.height - kNavibarH - kTabbarH)
    }

    func testView() {
        scrollView = UIScrollView.init()
        scrollView.frame = view.bounds
        scrollView.backgroundColor = UIColor.Material.blueA100
        view.addSubview(scrollView)
        let chooseImage = KPChooseImageView.init(orientation: .vert, arrangedCount: 3, maxChooseCount: 6)
        chooseImage.tg_width.equal(scrollView)
        scrollView.addSubview(chooseImage)

    }
}
